package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TSampAeDataInfoEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TSampSoundInfoDao;
import io.renren.modules.substation.entity.TSampSoundInfoEntity;
import io.renren.modules.substation.service.TSampSoundInfoService;


@Service("tSampSoundInfoService")
public class TSampSoundInfoServiceImpl extends ServiceImpl<TSampSoundInfoDao, TSampSoundInfoEntity> implements TSampSoundInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TSampSoundInfoEntity> page = this.page(
                new Query<TSampSoundInfoEntity>().getPage(params),
                new QueryWrapper<TSampSoundInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int updateByDevId(TSampSoundInfoEntity tSampSoundInfoEntity)
    {
        return baseMapper.updateByDevId(tSampSoundInfoEntity);
    }

}